import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import installElementPlus from './plugins/element'
// 导入全局样式表
import './assets/css/global.css'
// 全局注册axios
import axios from 'axios'
// 配置请求根路径
axios.defaults.baseURL = 'http://localhost:8080/Delivery'
    // 设置请求拦截器
    // axios.interceptors.request.use(config => {
    //     config.headers.Authorization = window.sessionStorage.getItem('id')
    //     return config
    // })
const app = createApp(App)
    // 挂载axios
app.config.globalProperties.$axios = axios

installElementPlus(app)
app.use(router).mount('#app')